package OOA.com.JavaBasis.abstract1;

public class Pig extends Animal{
    @Override
    public void eat() {
        System.out.println("猪吃饭");
    }

    @Override
    public void sleep() {
        System.out.println("猪睡觉");
    }

    public void pigwork(){
        System.out.println("吃掉");
    }
}
